package com.alan.server2.server;

import com.alan.share.bean.User;
import com.alibaba.fastjson.JSON;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by Alan on 17-11-21
 */
@Component
public class Test2ServerFallback implements Test2Server{
    @Override
    public String test(@RequestParam("str") String str) {
        return "testFallback"+str;
    }

    @Override
    public String user(User user) {
        System.out.println("testFallback " + JSON.toJSONString(user));
        return null;
    }
}
